<#escape x as (x)!> <#include "basewithsidebar.ftl"/> <#macro title> ${config.blogTitle} - 文章列表<#if tag?exists> - ${tag}</#if> </#macro> <#macro feed>
<meta name="robots" content="noindex,follow">
<link rel="alternate" type="application/rss+xml" title="${config.blogTitle}" href="/feed
<#if tag?exists>?tag=${tag}</#if>" /> </#macro> <#macro main> <#-- Post list --> <#list postlist as post>
<div class="post" id="${post.id}">

	<h2 class="title">
		<a href="/blog/post?action=view&postid=${post.id}">${post.title}</a>
	</h2>
	<div class="postinfo">
		${post.date?datetime} |
		<a href="/blog/post?action=view&postid=${post.id}#comments"> 评论(${post.commentCount}) </a> <#if post.tags?exists> | 标签: <#list post.getTags() as tag>
		<a href="/blog/post?tag=${tag}">${tag}</a><#if tag_has_next>,</#if> </#list> </#if> <#if userService.isUserLoggedIn() && userService.isUserAdmin() > |
		<a href="/blog/post?action=delete&postid=${post.id}">删除</a> |
		<a href="/blog/post?action=edit&postid=${post.id}">编辑</a> </#if>
	</div>
	<div class=content>
		${post.content}
	</div>
</div>
</#list> <#-- 分页 --> <#include "pageindicator.html" />
<!--<div class=page_panel style="text-align:right;">
<#if currentFlag?exists><a href="javascript:history.go(-1)">&lt;&lt;后退</a></#if>&nbsp;&nbsp;&nbsp;
<#if nextFlag?exists><a href="/blog/post?offsetflag=${nextFlag}<#if tag?exists>&tag=${tag}</#if>">下一页&gt;&gt;</a></#if>
</div> -->
</#macro> </#escape>
